package com.loong.web.gp4j.view.manage;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.loong.web.gp4j.bean.schema.user.Auths;
import com.loong.web.suppert.intercept.auth.AuthType;

/**
 * 管理员资源
 *
 * @author 张成轩
 */
@Controller
@RequestMapping("manage")
public class ManageViewMapping {

	/**
	 * 管理员平台页面
	 * 
	 * @param request 请求
	 * @return 视图
	 */
	@RequestMapping(value = "", method = RequestMethod.GET)
	@AuthType(Auths.SYS_MANAGER)
	public ModelAndView manage(HttpServletRequest request) {

		return new ModelAndView("redirect:/manage/statistics/");
	}
}
